package com.jay.ioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class Appcofig {
    @Bean
    @Scope("singleton")
    public HealthRecordService createHealthRecordService(){
        return new HealthRecordServiceImpl();
    }
}
